import { http } from "@/utils/http";
import type { HttpResult } from "@/utils/http/types";

export function queryFormTable(params: object) {
  return http.request<HttpResult>("get", "/esflow/form/get/table", {
    params: params
  });
}

export function getObj(id: string) {
  return http.request<HttpResult>("get", `/esflow/form/get/${id}`);
}

export function queryFormItemList(id: string) {
  return http.request<HttpResult>("get", `/esflow/form/get/item/list/${id}`);
}
